/**
 * @author huangjian
 * @date 2015-04-12
 */

package com.sure.minion.web.base;

/**
 * 基本响应结果
 * @author huangjian
 * @date 2015-07-30
 */
public class GenericResult
{
    private String code = "EC_SUCCESS";        // 错误代码
    private String msg = "";                // 错误消息：自动国际化，代码中无需设置
    private Object data = null;             // 实际数据
    
    public GenericResult()
    {
    }
    
    public GenericResult(Object data)
    {
        this.data = data;
    }

    public GenericResult(String code, Object data)
    {
        this.code = code;
        this.data = data;
    }
    
    public String getCode()
    {
        return code;
    }
    public void setCode(String code)
    {
        this.code = code;
    }
    public String getMsg()
    {
        return msg;
    }
    public void setMsg(String msg)
    {
        this.msg = msg;
    }
    public Object getData()
    {
        return data;
    }
    public void setData(Object data)
    {
        this.data = data;
    }
}
